//
//  HDDeclare.h
//  HDWuDaDaoServiceCenter
//
//  Created by HDNiuKuiming on 2017/4/7.
//  Copyright © 2017年 HDNiuKuiming. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum{
    kLanguage_Type_Unknown = 0,
    kLanguage_Type_Chinese,
    kLanguage_Type_English,
    kLanguage_Type_Japanese,
    kLanguage_Type_Korean,
    kLanguage_Type_French,
    kLanguage_Type_Germany,
    kLanguage_Type_Spanish,
}Language_Type;

typedef enum{
    kLogin_Status_Unknown,
    kLogin_Status_Login,
    kLogin_Status_Logout,
    kLogin_Status_Uncomplete,//未补全信息
}Login_Status;

typedef enum{
    kNet_Status_Unkown,
    kNet_Status_Wifi,
    kNet_Status_3G_4G,
    kNet_Status_Failed,
}Net_Status_Type;

typedef enum{
    kThird_Part_Login_Unknown,
    kThird_Part_Login_QQ,
    kThird_Part_Login_Wechat,
    kThird_Part_Login_Weibo,
}Third_Part_Login;

@interface HDDeclare : NSObject

@property (assign, nonatomic) Language_Type    languageType;
@property (assign, nonatomic) Login_Status     loginStatus;
@property (assign, nonatomic) Third_Part_Login thirdPartLogin;
@property (assign, nonatomic) Net_Status_Type  net_Status_Type;
@property (assign, nonatomic) BOOL             beaconFlag;

@property (strong, nonatomic) UIViewController *visibleVC;
@property (strong, nonatomic) NSString *language;
@property (strong, nonatomic) NSString *mapFloor;
@property (strong, nonatomic) NSString *mapRoute;

@property (strong, nonatomic) NSString *deviceno; // 机器号
@property (strong, nonatomic) NSString *baconStr;    // 当前蓝牙号
@property (strong, nonatomic) NSString *nowMuseumID;    // 当前蓝牙号

@property (strong, nonatomic) NSArray *resArray;      // 全部的资源数组
@property (strong, nonatomic) NSArray *routeArray;    // 3条固定路线数组
@property (strong, nonatomic) NSArray *mapSizeArray;  // 全部地图大小
@property (strong, nonatomic) NSArray *serviceArray;  // 全部地图大小
@property (strong, nonatomic) NSDictionary *translateDic;//翻译字典

@property (strong, nonatomic) NSArray *mapPOIArray;   // 全部地图POI信息
@property (strong, nonatomic) UIView *barBottomView;
//个人信息
@property (strong, nonatomic)           NSString *username;//用户名
@property (strong, nonatomic)           NSString *api_token; // 接口需要上传的token

@property (assign, nonatomic)           NSInteger uid;//用户ID
@property (assign, nonatomic)           NSInteger user_type_id;//会员类型id
@property (strong, nonatomic)           NSString *user_type;//会员类型名称
@property (strong, nonatomic)           NSString *user_deadline;//会员到期时间
@property (strong, nonatomic)           NSString *phone;//手机号
@property (strong, nonatomic)           NSString *nickname;//昵称
@property (strong, nonatomic)           NSString *avatar;//头像
@property (strong, nonatomic)           NSString *sign;//签名
@property (strong, nonatomic)           NSString *card_no;//卡号
@property (assign, nonatomic)           NSInteger credits;//积分
@property (assign, nonatomic)           NSInteger growth;//成长值

#pragma mark -------- Language --------
@property(nonatomic) BOOL netStatus;
@property(nonatomic) BOOL isVibrate;

@property(nonatomic) NSInteger notSurveyTime;
@property(nonatomic,strong) NSString *museumName;


#pragma mark
#pragma mark -------- Methods --------

+ (id)sharedDeclare;
+ (BOOL)isValidBeacon:(NSInteger)beaconNum;
// 获取图片真实大小
+ (NSString *)realSizeImagePathWithRequestPath:(NSString *)requestPath;
+ (NSString *)IP_Request_Header; // 根据内外网获取http请求的前缀

- (NSString*)nowLanguageIndexStr; // 当前语种1,2,3,4...
- (Language_Type)languageIndex;
- (void)setUserPhoneID:(NSString *)userPhoneID;
- (void)createMapPath:(NSString *)webMapPath;
- (BOOL)isRouteShowMode;
- (void)getData; // 根据语种获取数据
- (NSString *)getTranslate:(NSString*)originalString;//输入需要翻译的字符串,在plist里直接查询即可
+ (NSString *)UIString:(NSString *)keyStr; // 用类方法替换UI字符串

+ (void)showSuccessTip:(NSString *)msg;//成功提醒
+ (void)showErrorTip:(NSString *)msg;//失败提醒
+ (void)showMsgTip:(NSString *)msg;//纯文本提醒


// 根据图片返回路径计算图片url
+ (NSString *)URLImagePath:(NSString *)requestPath
                   imgSize:(CGSize)imgSize;

@end







